package com.ruoyi.app.controller.business.audit;

import com.ruoyi.business.base.PageParam;
import com.ruoyi.business.goods.domain.JbProduct;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.controller.business.goods.factory.JbProductFactory;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * APP 产品 Controller
 *
 * @author ruoyi
 * @date 2024-10-11
 */
@RestController
@RequestMapping("/app/product")
public class AppProductController extends BaseController
{

    @Autowired
    private JbProductFactory jbProductFactory;

    @ApiOperation("查询全部")
    @GetMapping("/listAll")
    public AjaxResult listAll(PageParam page, JbProduct jbProduct)
    {
        return AjaxResult.success(jbProductFactory.getJbProductService().list(
                jbProductFactory.buildQW(page, jbProduct))
        );
    }

}
